package com.zzl.scala

object Lesson04 {
  def main(args: Array[String]): Unit = {
    for(i<-1 to 10){
      matchTest(i)
    }
  }

  def matchTest(x:Int) = {
    x match {
      case 1=>println("one")
      case i:Int =>println("Int")
      case 2=>println("two")
      case 3=>println("three")
      case _=>println("default")
    }
  }

}
